package com.lhy.service;

import com.lhy.domain.Member;
import com.lhy.domain.User;
import com.lhy.utils.Pagination;

import java.util.List;

/**
 * @author 汪
 */
public interface MemberService {
    /**
     * 获取全部member
     * @return
     */
    List<Member> showAllMember();

    /**
     * 添加
     * @param member
     * @return
     */
    int addMember(Member member, User user);

    /**
     * 修改member
     * @param member
     * @return
     */
    int modifyMember(Member member);

    /**
     * 删除
     * @param memberId
     * @return
     */
    int deleteMember(int memberId);

    /**
     * 充值
     * @param rechargeMount
     */
    void modifyMount(Double rechargeMount,Integer memberId);

    /**
     * 查询
     * @param memberId
     * @param realName
     * @param tel
     * @param credit
     * @return
     */
    List<Member> showSomeMember(Pagination<Member> page);
}
